static-delta: Put temp files in /var/tmp
authorAlexander Larsson <alexl@redhat.com>
Thu, 14 Apr 2016 18:55:28 +0000 (20:55 +0200)
committerColin Walters (automation) <walters+githubbot@verbum.org>
Thu, 14 Apr 2016 20:49:32 +0000 (20:49 +0000)
We may not have write permissions in the current directory.

Closes: #259
Approved by: cgwalters

src/libostree/ostree-repo-static-delta-compilation.c

index df5dc19e6357bb60223fbc24cfb0f36058b04643..b398923473ab02d9b94811ecd769c34cc6ddc53f 100644 (file)
@@ -455,7 +455,7 @@ get_unpacked_unlinked_content (OstreeRepo       *repo,
                                GError          **error)
 {
   gboolean ret = FALSE;
-  g_autofree char *tmpname = g_strdup ("tmpostree-deltaobj-XXXXXX");
+  g_autofree char *tmpname = g_strdup ("/var/tmp/tmpostree-deltaobj-XXXXXX");
   glnx_fd_close int fd = -1;
   g_autoptr(GBytes) ret_content = NULL;
   g_autoptr(GInputStream) istream = NULL;